<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EOS.IO: Dual 128 bit Index table</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN3.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Dual 128 bit Index table<div class="ingroups"><a class="el" href="group__contractdev.html">Smart Contract API Reference</a> &raquo; <a class="el" href="group__database.html">Database API</a> &raquo; <a class="el" href="group__database_c.html">Database C API</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Interface to a database table with 128 bit primary and secondary keys and arbitary binary data value.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga0f1d38db45982bb5d4d1befef0fa71de"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga0f1d38db45982bb5d4d1befef0fa71de">load_primary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga0f1d38db45982bb5d4d1befef0fa71de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8859d7c4b352b66002cf5702a764c464"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga8859d7c4b352b66002cf5702a764c464">front_primary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga8859d7c4b352b66002cf5702a764c464"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga093ef261efdf4ba1f92804ef8df3fcb2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga093ef261efdf4ba1f92804ef8df3fcb2">back_primary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga093ef261efdf4ba1f92804ef8df3fcb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0244e6b697281bc05d94764af17a936b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga0244e6b697281bc05d94764af17a936b">next_primary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga0244e6b697281bc05d94764af17a936b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gada7912d463fa7fcada424c66548491aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#gada7912d463fa7fcada424c66548491aa">previous_primary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:gada7912d463fa7fcada424c66548491aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1e1fc6293eddd10cd4155ef9ee2d945b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga1e1fc6293eddd10cd4155ef9ee2d945b">upper_bound_primary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga1e1fc6293eddd10cd4155ef9ee2d945b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae929bc3cdb953dcddf027198b7edfb87"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#gae929bc3cdb953dcddf027198b7edfb87">lower_bound_primary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:gae929bc3cdb953dcddf027198b7edfb87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga00f17a7da0946ae71ab7d240c3dc3ecb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga00f17a7da0946ae71ab7d240c3dc3ecb">load_secondary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga00f17a7da0946ae71ab7d240c3dc3ecb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf4aabe650dd7a2e795acb6635255af2c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#gaf4aabe650dd7a2e795acb6635255af2c">front_secondary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:gaf4aabe650dd7a2e795acb6635255af2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9902025d081dff9690f78402c45a81a7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga9902025d081dff9690f78402c45a81a7">back_secondary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga9902025d081dff9690f78402c45a81a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac421e93fee948b316e6d60d634600bfb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#gac421e93fee948b316e6d60d634600bfb">next_secondary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:gac421e93fee948b316e6d60d634600bfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga17c3922c81016650988af89e22090b9d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga17c3922c81016650988af89e22090b9d">previous_secondary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga17c3922c81016650988af89e22090b9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4251461fc0fcb2e9d19e5a367c1e487b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga4251461fc0fcb2e9d19e5a367c1e487b">upper_bound_secondary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga4251461fc0fcb2e9d19e5a367c1e487b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabeb18d4d78cc24e01d9f2a93c57fc09a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#gabeb18d4d78cc24e01d9f2a93c57fc09a">lower_bound_secondary_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> code, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:gabeb18d4d78cc24e01d9f2a93c57fc09a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga31cc0c52eccc34d97d28cfd373a2a356"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga31cc0c52eccc34d97d28cfd373a2a356">remove_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, const void *data)</td></tr>
<tr class="separator:ga31cc0c52eccc34d97d28cfd373a2a356"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga86c181758bb05e5e85a5e5ea245feeab"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga86c181758bb05e5e85a5e5ea245feeab">store_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, const void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga86c181758bb05e5e85a5e5ea245feeab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga39a96fa6ebf0c2d43c2314f658a5604d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga39a96fa6ebf0c2d43c2314f658a5604d">update_i128i128</a> (<a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a> scope, <a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a> table, const void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga39a96fa6ebf0c2d43c2314f658a5604d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account where table data will be found </td></tr>
    <tr><td class="paramname">code</td><td>- the code which owns the table </td></tr>
    <tr><td class="paramname">table</td><td>- the name of the table where record is stored </td></tr>
    <tr><td class="paramname">data</td><td>- a pointer to memory that is at least 32 bytes long </td></tr>
    <tr><td class="paramname">len</td><td>- the length of data, must be greater than or equal to 32 bytes</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the total number of bytes read or -1 for "not found" or "end" where bytes read includes 32 bytes of the key</dd></dl>
<p>These methods assume a database table with records of the form:</p>
<div class="fragment"><div class="line"><span class="keyword">struct </span>record {</div><div class="line">   uint128  <a class="code" href="test__db_8cpp.html#af15b5e608a0fbe8c184ab90b3791413f">primary</a>;</div><div class="line">   uint128  <a class="code" href="test__db_8cpp.html#a52c20999685338b5763f129033f2c1d9">secondary</a>;</div><div class="line">   ... arbitrary data ...</div><div class="line">};</div></div><!-- fragment --><p>You can iterate over these indicies with primary index sorting records by { primary, secondary } and the secondary index sorting records by { secondary, primary }. This means that duplicates of the primary or secondary values are allowed so long as there are no duplicates of the combination {primary, secondary}.</p>
<dl class="section see"><dt>See also</dt><dd>table class in C++ API</dd></dl>
<p>Example </p><div class="fragment"><div class="line"> <span class="keyword">struct </span>test_model128x2 {</div><div class="line">    <a class="code" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a> number;</div><div class="line">    <a class="code" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a> <a class="code" href="namespaceexchange.html#a88a7bba4166424f9bf3e8cfd9b352730">price</a>;</div><div class="line">    <a class="code" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>  extra;</div><div class="line">    <a class="code" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>  <a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>;</div><div class="line"> };</div><div class="line"></div><div class="line"> test_model128x2 alice{0, 500, <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(alice), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>)};</div><div class="line"> test_model128x2 bob{1, 1000, <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(bob), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>)};</div><div class="line"> test_model128x2 carol{2, 1500, <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(carol), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>)};</div><div class="line"> test_model128x2 dave{3, 2000, <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(dave), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>)};</div><div class="line"> <a class="code" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> res = <a class="code" href="group__dbi128i128.html#ga86c181758bb05e5e85a5e5ea245feeab">store_i128i128</a>(CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>), &amp;alice, <span class="keyword">sizeof</span>(test_model128x2));</div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga86c181758bb05e5e85a5e5ea245feeab">store_i128i128</a>(CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>), &amp;bob, <span class="keyword">sizeof</span>(test_model128x2));</div><div class="line"> ASSERT(res == 1, <span class="stringliteral">&quot;db store failed&quot;</span>);</div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga86c181758bb05e5e85a5e5ea245feeab">store_i128i128</a>(CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>), &amp;carol, <span class="keyword">sizeof</span>(test_model128x2));</div><div class="line"> ASSERT(res == 1, <span class="stringliteral">&quot;db store failed&quot;</span>);</div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga86c181758bb05e5e85a5e5ea245feeab">store_i128i128</a>(CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>), &amp;dave, <span class="keyword">sizeof</span>(test_model128x2));</div><div class="line"> ASSERT(res == 1, <span class="stringliteral">&quot;db store failed&quot;</span>);</div><div class="line"></div><div class="line"> test_model128x2 query;</div><div class="line"> query.number = 0;</div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga0f1d38db45982bb5d4d1befef0fa71de">load_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(test_model128x2));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(test_model128x2) &amp;&amp; query.number == 0 &amp;&amp; query.price == 500 &amp;&amp; query.extra == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(alice), <span class="stringliteral">&quot;load&quot;</span>);</div><div class="line"></div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga8859d7c4b352b66002cf5702a764c464">front_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(test_model128x2));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(test_model128x2) &amp;&amp; query.number == 3 &amp;&amp; query.price = 2000 &amp;&amp; query.extra == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(dave), <span class="stringliteral">&quot;front&quot;</span>);</div><div class="line"></div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga0244e6b697281bc05d94764af17a936b">next_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>), &amp; query, <span class="keyword">sizeof</span>(test_model128x2));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(test_model128x2) &amp;&amp; query.number == 2 &amp;&amp; query.price == 1500 &amp;&amp; query.extra == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(carol), <span class="stringliteral">&quot;next&quot;</span>);</div><div class="line"></div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga093ef261efdf4ba1f92804ef8df3fcb2">back_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(test_model128x2));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(test_model128x2) &amp;&amp; query.number == 0 &amp;&amp; query.price == 500 &amp;&amp; query.extra == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(alice), <span class="stringliteral">&quot;back&quot;</span>);</div><div class="line"></div><div class="line"> res = <a class="code" href="group__dbi128i128.html#gada7912d463fa7fcada424c66548491aa">previous_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(test_model128x2));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(test_model128x2) &amp;&amp; query.number == 1 &amp;&amp; query.price == 1000 &amp;&amp; query.extra == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(bob), <span class="stringliteral">&quot;previous&quot;</span>);</div><div class="line"></div><div class="line"> query.number = 0;</div><div class="line"> res = <a class="code" href="group__dbi128i128.html#gae929bc3cdb953dcddf027198b7edfb87">lower_bound_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(test_model128x2));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(test_model128x2) &amp;&amp; query.number == 0 &amp;&amp; query.price == 500 &amp;&amp; query.extra == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(alice), <span class="stringliteral">&quot;lower&quot;</span>);</div><div class="line"></div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga1e1fc6293eddd10cd4155ef9ee2d945b">upper_bound_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(test_model128x2));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(test_model128x2) &amp;&amp; query.number == 1 &amp;&amp; query.price == 1000 &amp;&amp; query.extra == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(bob), <span class="stringliteral">&quot;upper&quot;</span>);</div><div class="line"></div><div class="line">query.extra = <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(bobby);</div><div class="line">res = update_i128128(CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(test_model128x2));</div><div class="line">ASSERT(res == <span class="keyword">sizeof</span>(test_model128x2) &amp;&amp; query.number == 1 &amp; query.price == 1000 &amp;&amp; query.extra == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(bobby), <span class="stringliteral">&quot;update&quot;</span>);</div><div class="line"></div><div class="line">res = remove_i128128(CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(test_model128x2));</div><div class="line">ASSERT(res == 1, <span class="stringliteral">&quot;remove&quot;</span>)</div></div><!-- fragment --> <h2 class="groupheader">Function Documentation</h2>
<a id="ga093ef261efdf4ba1f92804ef8df3fcb2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga093ef261efdf4ba1f92804ef8df3fcb2">&#9670;&nbsp;</a></span>back_primary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> back_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the back record of primary key </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a id="ga9902025d081dff9690f78402c45a81a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9902025d081dff9690f78402c45a81a7">&#9670;&nbsp;</a></span>back_secondary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> back_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the back record of secondary key </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a id="ga8859d7c4b352b66002cf5702a764c464"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8859d7c4b352b66002cf5702a764c464">&#9670;&nbsp;</a></span>front_primary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> front_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the front record of primary key </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a id="gaf4aabe650dd7a2e795acb6635255af2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf4aabe650dd7a2e795acb6635255af2c">&#9670;&nbsp;</a></span>front_secondary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> front_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the front record of secondary key </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a id="ga0f1d38db45982bb5d4d1befef0fa71de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0f1d38db45982bb5d4d1befef0fa71de">&#9670;&nbsp;</a></span>load_primary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> load_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- the code which owns the table </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the current scope/code context to modify </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the record, must be initialized with the primary key to load </td></tr>
    <tr><td class="paramname">len</td><td>- length of record to copy </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read, -1 if key was not found</dd></dl>
<dl class="section pre"><dt>Precondition</dt><dd>len &gt;= sizeof(uint128_t) </dd>
<dd>
data is a valid pointer to a range of memory at least datalen bytes long </dd>
<dd>
*((uint128_t*)data) stores the primary key </dd>
<dd>
scope is declared by the current transaction </dd>
<dd>
this method is being called from an apply context (not validate or precondition)</dd></dl>
<dl class="section post"><dt>Postcondition</dt><dd>data will be initialized with the len bytes of record matching the key.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">if</td><td>called with an invalid precondition execution will be aborted </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga00f17a7da0946ae71ab7d240c3dc3ecb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga00f17a7da0946ae71ab7d240c3dc3ecb">&#9670;&nbsp;</a></span>load_secondary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> load_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- the code which owns the table </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the current scope/code context to modify </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the record, must be initialized with the secondary key to load </td></tr>
    <tr><td class="paramname">len</td><td>- length of record to copy </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read, -1 if key was not found</dd></dl>
<dl class="section pre"><dt>Precondition</dt><dd>len &gt;= sizeof(uint128_t) </dd>
<dd>
data is a valid pointer to a range of memory at least datalen bytes long </dd>
<dd>
*((uint128_t*)data) stores the secondary key </dd>
<dd>
scope is declared by the current transaction </dd>
<dd>
this method is being called from an apply context (not validate or precondition)</dd></dl>
<dl class="section post"><dt>Postcondition</dt><dd>data will be initialized with the len bytes of record matching the key.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">if</td><td>called with an invalid precondition execution will be aborted </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gae929bc3cdb953dcddf027198b7edfb87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae929bc3cdb953dcddf027198b7edfb87">&#9670;&nbsp;</a></span>lower_bound_primary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> lower_bound_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the lower bound of a primary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a id="gabeb18d4d78cc24e01d9f2a93c57fc09a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabeb18d4d78cc24e01d9f2a93c57fc09a">&#9670;&nbsp;</a></span>lower_bound_secondary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> lower_bound_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the lower bound of given secondary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a id="ga0244e6b697281bc05d94764af17a936b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0244e6b697281bc05d94764af17a936b">&#9670;&nbsp;</a></span>next_primary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> next_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the next record of primary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a id="gac421e93fee948b316e6d60d634600bfb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac421e93fee948b316e6d60d634600bfb">&#9670;&nbsp;</a></span>next_secondary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> next_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the next record of secondary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a id="gada7912d463fa7fcada424c66548491aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gada7912d463fa7fcada424c66548491aa">&#9670;&nbsp;</a></span>previous_primary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> previous_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the previous record of primary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a id="ga17c3922c81016650988af89e22090b9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga17c3922c81016650988af89e22090b9d">&#9670;&nbsp;</a></span>previous_secondary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> previous_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the previous record of secondary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a id="ga31cc0c52eccc34d97d28cfd373a2a356"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga31cc0c52eccc34d97d28cfd373a2a356">&#9670;&nbsp;</a></span>remove_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> remove_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- must point to at lest 32 bytes containing {primary,secondary}</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if a record was removed, and 0 if no record with key was found </dd></dl>

</div>
</div>
<a id="ga86c181758bb05e5e85a5e5ea245feeab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga86c181758bb05e5e85a5e5ea245feeab">&#9670;&nbsp;</a></span>store_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> store_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- must point to a at least 32 bytes containing (primary, secondary) </td></tr>
    <tr><td class="paramname">len</td><td>- the length of the data </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if a new record was created, 0 if an existing record was updated </dd></dl>

</div>
</div>
<a id="ga39a96fa6ebf0c2d43c2314f658a5604d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga39a96fa6ebf0c2d43c2314f658a5604d">&#9670;&nbsp;</a></span>update_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> update_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- must to a at least 32 bytes containing (primary, secondary) </td></tr>
    <tr><td class="paramname">len</td><td>- the length of the data </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if the record was updated, 0 if no record with key was found </dd></dl>

</div>
</div>
<a id="ga1e1fc6293eddd10cd4155ef9ee2d945b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1e1fc6293eddd10cd4155ef9ee2d945b">&#9670;&nbsp;</a></span>upper_bound_primary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> upper_bound_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the upper bound of a primary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a id="ga4251461fc0fcb2e9d19e5a367c1e487b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4251461fc0fcb2e9d19e5a367c1e487b">&#9670;&nbsp;</a></span>upper_bound_secondary_i128i128()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> upper_bound_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga3b44deb4b3b8d6ebab339d1263692117">account_name</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga330cbf48637c876c57f78d03fd4730bb">table_name</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the upper bound of given secondary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
